package pkg.util;

import java.text.DateFormat;
import java.util.TimeZone;
import net.sourceforge.stripes.validation.DateTypeConverter;

public class PSTDateTypeConverter extends DateTypeConverter {

    @Override
    protected DateFormat[] getDateFormats() {
        DateFormat[] formats = super.getDateFormats();
        TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");
        for(DateFormat df : formats) {
            df.setTimeZone(tz);
        }

        return formats;
    }
}
